/**
 * wxd
 * 在iframe中弹出框覆盖整个页面，而不仅仅覆盖iframe
 */

function openFrameDialog(id, title, width, height, content, options) {
	var dialogHtml = '<div id="'+id+'" style="text-align:center;" class="easyui-dialog" data-options="'+ options +'"></div>';
    var openDialog = window.top.$(dialogHtml).appendTo(window.top.document.body);
    openDialog.dialog({
        title: title,
        width: width === undefined ? 360 : width,
        height: height === undefined ? 300 : height,
        content: content,
        modal: true,
        shadow: true,
        minimizable: false,
        maximizable: false,
        cache: false,
        closed: false,
        collapsible: false,
        resizable: false,
        loadingMessage: '数据加载中......',       
        onClose : function(){ 
        	openDialog.dialog("destroy"); 
        }
    });
}





/*var html = '<div id="w_angelasp_div">'
	html += '    <div id="angelasp_div" class="easyui-dialog"  title="标题" data-options="modal:true,closed:true,iconCls:\'icon-user-accept\'" style="width:400px;height:210px;" buttons="#w_audit_div_button">'
	html += '        <div class="container_16" style="width:90%;margin:5%;"> '
	html += '            <div class="grid_13 val">窗体内容<div>          '
	html += '        </div>                                                  '
	html += '    </div>                                                     '
	html += '    <div id="w_audit_div_button" class="audit_button">'
	html += '        <a href="javascript:void(0)" data-bind="click:confirmClick" class="easyui-linkbutton" iconCls="icon-ok" >确定</a> '
	html += '        <a href="javascript:void(0)" data-bind="click:cancelClick" class="easyui-linkbutton" iconCls="icon-cancel" >取消</a> '
	html += '    </div>  '
	html += '</div>';
	*/